package com.heima.feign.article;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.channel.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author rookie001
 * @creat 2023-06-10-14:53
 */
@FeignClient(value = "leadnews-article")//, fallback = IArticleClientFallback.class
public interface IArticleClient {
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);
    //管理端修改同步更新app端频道
    @PostMapping("/api/v1/channel/update")
     void updateChannel(@RequestBody WmChannel wmChannel);

}
